<template>
  <div class="app-container">
    <el-card>
      <el-tabs v-model="activeTab">
        <el-tab-pane label="已检修任务" name="PreTable">
          <pre-table
            v-if="activeTab === 'PreTable'"
          />
        </el-tab-pane>
        <el-tab-pane label="安排检修任务" name="Task">
          <task
            v-if="activeTab === 'Task'"
          />
        </el-tab-pane>
      </el-tabs>
    </el-card>
  </div>
</template>

<script>
import Task from '@/views/pre_repair/components/Task'
import PreTable from '@/views/pre_repair/components/PreTable'

export default {
  name: 'Index',
  components: { PreTable, Task },
  data() {
    return {
      activeTab: 'Task'
    }
  },
  methods: {}
}
</script>

<style scoped>

</style>
